#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
void draw(auto &img,int n,int x,int y){
  if(n==1){
    img[x][y]=img[x-1][y+1]='/';
    img[x-1][y+2]=img[x][y+3]='\\';
    img[x][y+1]=img[x][y+2]='_';
    return;
  }
  int dh=pow(2,n)/2;
  int width=pow(2,n+1);
  int w1=width/4;
  int w2=width/2;
  draw(img,n-1,x,y);
  draw(img,n-1,x-dh,y+w1);
  draw(img,n-1,x,y+w2);
}
int main(){
  int n;
  cin>>n;
  int height=pow(2,n);
  int width=pow(2,n+1);
  auto img=vector(height,string(width,' '));
  draw(img,n,height-1,0);
  for(auto x:img){
    cout<<x<<endl;
  }
}